﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Ocelot.Admin.Api.Core
{
    /// <summary>
    /// 字典项
    ///</summary>
    [SugarTable("DictionaryItem")]
    public class DictionaryItem
    {
        /// <summary>
        /// 主键Id 
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 字典Id
        ///</summary>
        [SugarColumn(ColumnName = "DictionaryId")]
        public int DictionaryId { get; set; }

        /// <summary>
        /// 字典关键字
        ///</summary>
        [SugarColumn(ColumnName = "Key")]
        public string Key { get; set; }

        /// <summary>
        /// 字典值
        ///</summary>
        [SugarColumn(ColumnName = "Value")]
        public string Value { get; set; }

        /// <summary>
        /// 备注
        ///</summary>
        [SugarColumn(ColumnName = "Remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 是否启用
        ///</summary>
        [SugarColumn(ColumnName = "Enabled")]
        public bool Enabled { get; set; }
    }
}
